package cn.iocoder.yudao.module.promotion.redpacket.service.open;

import cn.iocoder.yudao.framework.business.basic.service.impl.AbstractService;
import cn.iocoder.yudao.module.promotion.redpacket.convert.RedPacketUsedConvert;
import cn.iocoder.yudao.module.promotion.redpacket.dao.RedPacketUsedMapper;
import cn.iocoder.yudao.module.promotion.redpacket.pojo.po.RedPacketUsed;
import cn.iocoder.yudao.module.promotion.redpacket.pojo.vo.RedPacketUsedVO;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 服务
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/07/26
 */
@Service
public class OpenRedPacketUsedService extends AbstractService<RedPacketUsed, RedPacketUsedVO> {
    @Resource
    private RedPacketUsedMapper redPacketUsedMapper;

    @Override
    public RedPacketUsedMapper getInjectedMapper() {
        return redPacketUsedMapper;
    }

    @Override
    public RedPacketUsedVO convertToViewObject(RedPacketUsed entity) {
        return RedPacketUsedConvert.INSTANCE.toViewObject(entity);
    }

}
